home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
science
/
sm32a.zip
/
LIBRARY
/
ROOT.LI
< prev
next >
Wrap
Text File
|
1993-10-16
|
212b
|
7 lines
# root(x,n) gives all of roots of x in n order. The first of root
# is the P.V.
# e.g. root(4,2) gives [2,-2] # square root of 4
# See also: sqrt
root(x_, n_) := [list(x^(1/n)*e^(2*k*pi*i/n), k,0,n-1,1)]